package com.rongke.lequ.ui.activity

import com.rongke.baselibrary.base.BaseActivity
import com.rongke.baselibrary.network.RetrofitHelper
import com.rongke.baselibrary.util.SPHelper
import com.rongke.baselibrary.view.LoadingDialog
import com.rongke.lequ.R
import com.rongke.lequ.getStr
import com.rongke.lequ.ui.activity.presenter.LoginPresenter
import com.rongke.lequ.ui.activity.presenter.SplashPresenter
import kotlinx.android.synthetic.main.activity_login.*

/**
 * Created by jh352160 on 2018/5/23.
 */
class LoginActivity : BaseActivity<LoginPresenter>() {
    override fun setLayoutRes() = R.layout.activity_login

    override fun initView() {
        hideTitleBar(true)

        val token = SPHelper.getString("token", "")
        if ("" != token){

            finish()
        }

        tv_register.    setOnClickListener {  }
        tv_login_forget.setOnClickListener {  }
        btn_login.      setOnClickListener { mPresenter.doLogin(edt_phone.getStr(),edt_psw.getStr()) }
    }
}